import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router';

const routes: RouteRecordRaw[] = [
  {
    path: '/',
    name: 'home',
    component: () => import('@views/home.vue'),
    children: [
      {
        path: 'http-log',
        name: 'http-log',
        component: () => import('@views/http-log/http-log-page.vue'),
      },
      {
        path: 'log',
        name: 'log',
        component: () => import('@views/log/log-page.vue'),
      },
      {
        path: 'setting',
        name: 'setting',
        component: () => import('@views/setting/setting-page.vue'),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export { router };
